<?php
/**
 * Installer template
 *
 * @copyright		The XOOPS project http://www.xoops.org/
 * @license			http://www.fsf.org/copyleft/gpl.html GNU General Public License (GPL)
 * @package			installer
 * @since			2.0.18
 * @version			$Id: install_tpl.php 598 2006-06-30 15:45:20Z skalpa $
 *
 * @author			Haruki Setoyama  <haruki@planewave.org>
 * @author			Kazumi Ono <webmaster@myweb.ne.jp>
 * @author			Skalpa Keo <skalpa@xoops.org>
 * @author			dugris <dugris@frxoops.org>
**/

if ( !defined('XOOPS_INSTALL') ) { die('XOOPS Custom Installation die'); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo _INSTALL_LANGCODE; ?>" lang="<?php echo _INSTALL_LANGCODE; ?>">
<html>
<head>
<title>
	<?php echo sprintf(XOOPS_INSTALL_WIZARD, XOOPS_VERSION); ?>
	(<?php echo ($wizard->currentPage+1) . '/' . count($wizard->pages); ?>)
</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo _INSTALL_CHARSET ?>" />
<link rel="stylesheet" type="text/css" media="all" href="../xoops.css" />
<link rel="stylesheet" type="text/css" media="all" href="style.css" />
<link rel="stylesheet" type="text/css" media="all" href="jseffects/mootools/mootools-tips.css" />
<script type="text/javascript" src="./include/install.js"></script>
<script type="text/javascript" src="./jseffects/mootools/mootools-1.11.js"></script>
<script type="text/javascript" src="./jseffects/others/rel.js"></script>

<?php
if ( isset($wizard->helper) ) {
	echo "<script type=\"text/javascript\">\n";
	echo "window.addEvent('domready', function(){\n";
	foreach($wizard->helper as $k => $help) {
		echo "var " . $help . "= new Tips($$('." . $help . "'));\n";
	}
	echo "});\n";
	echo "</script>";
}
?>

</head>
<body>
<div id="xo-header">
	<div id="xo-banner" class="commercial">
		<img id="xo-main-logo" src="img/logo.png" alt="XOOPS" />
		<div id="xo-version"><?php echo XOOPS_VERSION; ?></div>
		<div id="xo-support"><a href='<?php echo SUPPORT_URL; ?>' rel='external' title='<?php echo SUPPORT_ALT; ?>'><?php echo SUPPORT_TITLE; ?></a></div>
	</div>
</div>
<div id="xo-globalnav">&nbsp;</div>

<div id="xo-content">
	<div class="tagsoup1">
		<div class="tagsoup2">
			<div id="wizard">
			<form <?php echo !empty($wizard->actionName) ? "id='" . $wizard->actionName . "' ": ""; ?>action='<?php echo $wizard->actionForm; ?>' method='post'>
			<h1>
				<span id="title"><?php echo XOOPS_INSTALL_WIZARD; ?></span>
			</h1>
			<ul id="pageslist" class="x2-navigation">
			<?php
			foreach ( $wizard->pages as $k => $page ) {
				$class = '';
				if ( $k == $wizard->currentPage ) {
					$class = ' class="current"';
				} elseif (
					$k > $wizard->currentPage
				)
				$class = ' class="disabled"';
				if ( empty( $class ) ) {
					$li = '<a href="' . $wizard->pageURI($page) . '" title="' . $wizard->pagesNames[$k] . '">' . $wizard->pagesNames[$k] . '</a>';
				} else {
					$li = $wizard->pagesNames[$k];
				}
				echo "<li$class>$li</li>\n";
			}
			?>
			</ul>

			<div class="page" id="<?php echo $wizard->currentPageName; ?>">
				<h2><?php echo htmlspecialchars( $wizard->pagesTitles[ $wizard->currentPage ] ); ?></h2>
				<?php echo $content; ?>
			</div>

			<div id="buttons">
				<?php if ( @$pageHasEnd == false ) { ?>
					<?php if ( $wizard->currentPage != 0 ) { ?>
						<button type="button" onclick="history.back()">
						<?php echo BUTTON_PREVIOUS; ?>
						</button>
					<?php } ?>

					<?php if ( @$pageHasForm ) { ?>
						<button type="submit">
					<?php } else { ?>
						<button type="button" accesskey="n" onclick="location.href='<?php echo $wizard->pageURI('+1'); ?>'">
					<?php } ?>
					<?php echo BUTTON_NEXT; ?>
					</button>
				<?php } ?>
			</div>
		</form>
		</div>
	</div>
	</div>
</div>
</body>
</html>